package com.nuit.cxl.mybatistest2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuit.cxl.mybatistest2.pojo.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

public interface PersonMapper extends BaseMapper<Person> {

    // #{id}  代表的就是我们的入参id
    @Select("select * from person where id = #{id}")
    Person getPerson(int id);
}
